<?php /* Smarty version 2.6.16, created on 2009-04-16 03:19:17
         compiled from AjaxFriendsSearch.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'language', 'AjaxFriendsSearch.html', 29, false),)), $this); ?>
				<?php echo '
				<script type="text/javascript">
				
				function getFriends()
				{
					new Effect.Appear(\'ajax_main_image\');
					document.getElementById(\'update_check\').innerHTML=\'\';
					'; ?>

					var get_user = document.getElementById('userid').value;
					xajax_getFriendsList(get_user, 'videoInviteUser', '<?php echo $this->_tpl_vars['aParams']; ?>
', '<?php echo $this->_tpl_vars['sContent']; ?>
', '<?php echo $this->_tpl_vars['sValue']; ?>
');
					<?php echo '
					return false;
				}

				function checkEnterKey(event)
				{
					if ((event.which && event.which == 13) || (event.keyCode && event.keyCode == 13)) 
					{
						getFriends();
						return false;
					}
					
					return false;
				}
				
				function startRoutine(iId)
				{
					'; ?>

					document.getElementById(iId).innerHTML=' <img src="design/pic/loader.gif" alt="" style="vertical-align:middle;" /> <?php echo smarty_function_language(array('text' => "Mod_Account.processing"), $this);?>
 ';
					<?php echo '
				}

        		</script>
        		'; ?>

        		<div style="padding:8px;">
				<?php echo smarty_function_language(array('text' => "Mod_Account.ajax.username"), $this);?>
:

        		<input onkeydown="checkEnterKey(event);" id="userid" type="text" name="aUser[user]" value="<?php echo $this->_tpl_vars['aUser']['user']; ?>
" maxlength="25" size="20" />

				<span id="check_ajax_user"></span>
				<span id="check_username">
					<input type="button" value="<?php echo smarty_function_language(array('text' => 'Mod_Account.ajax.submit'), $this);?>
" name="checkUsername" style="cursor:pointer;" onclick="return getFriends();" />
					<span id="ajax_main_image" style="display:none;font-size:10pt;font-weight:bold;">
						<img src="design/pic/loader.gif" alt="" style="vertical-align:middle;" /> <?php echo smarty_function_language(array('text' => "Mod_Account.ajax.searching"), $this);?>

					</span>
				</span>
				
				<div id="update_check" style="display:none;"></div>
				<div id="user_content"></div>
				</div>